package com.example.shop.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 加入购物车传参声明
 */
@Data
public class CartParam {

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private Integer userID;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date creatTime = new Date();

    /**
     * encodeURI(JSON.stringify([
     * {goodsID:'1217692625312694273',goodsNum:1, goodsStandard:1},
     * {goodsID:'1217686060966903810',goodsNum:2, goodsStandard:1} )])
     */
    @ApiModelProperty(value = "购物车商品数组字符串 例如：encodeURI(JSON.stringify([{goodsID:'12',goodsNum:1,goodsStandard:1}]))", example = "encodeURI(JSON.stringify([{goodsID:'12',goodsNum:1,goodsStandard:1}]))")
    private String attrValues;

}
